package com.wei.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 李泽伟
 * @since 2022-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GdAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账号主键
     */
    @TableId(value = "account_id", type = IdType.INPUT)
    private String accountId;

    /**
     * 所属房产外键
     */
    private String accountForeignkey;

    /**
     * 用户名
     */
    private String accountUsername;

    /**
     * 密码
     */
    private String accountPassword;

    /**
     * 账号类型
     */
    private String accountType;

    /**
     * 所属房产地址
     */
    private String propertyAddress;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleted;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
